package com.tedu.charging.common.mq;

public abstract class AbstractProducer {
    public abstract boolean sendMessage(String exchangeName,String routingKey,Object message) ;
    public abstract boolean sendMessage(Object message) ;
    public abstract boolean sendMessage(String routingKey,Object message) ;
    public void handleSuccess(Object message) {
       //日志处理
    }

    public void handleError(Object message, Throwable e) {
        //日志处理
    }
}
